package com.cangshi.service;

import com.cangshi.dao.ChinaMapper;
import com.cangshi.entity.China;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Eoly on 2016/12/22.
 */
@Service("chinaBean")
public class ChinaServiceImpl implements ChinaService{

    @Autowired
    ChinaMapper chinaMapper;

    public List<China> findByPid(Integer pid) {
        return chinaMapper.selectByPid(pid);
    }
}
